.class public Lrexsee/multimedia/RexseeCameraPreview;
.super Ljava/lang/Object;
.source "RexseeCameraPreview.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final CAMERA_NOTSTARTED:Ljava/lang/String; = "Carmera preview is not started."

.field public static final EVENT_ONCAMERAPREVIEWKEYDOWN:Ljava/lang/String; = "onCameraPreviewKeyDown"

.field public static final EVENT_ONCAMERASTARTED:Ljava/lang/String; = "onCameraStarted"

.field public static final EVENT_ONCAMERAZOOMFINISHED:Ljava/lang/String; = "onCameraZoomFinished"

.field public static final INTERFACE_NAME:Ljava/lang/String; = "CameraPreview"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field public final mContext:Landroid/content/Context;

.field public previewDialog:Lrexsee/multimedia/CameraPreviewDialog;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 2
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 139
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 137
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    .line 140
    iput-object p1, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    .line 141
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mContext:Landroid/content/Context;

    .line 142
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onCameraStarted"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 143
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onCameraZoomFinished"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 144
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onCameraPreviewKeyDown"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 145
    return-void
.end method

.method public static _getArguments(Landroid/hardware/Camera;)Ljava/lang/String;
    .locals 9
    .param p0, "camera"    # Landroid/hardware/Camera;

    .prologue
    const-class v5, Landroid/hardware/Camera$Parameters;

    const-string v8, "\""

    .line 102
    invoke-virtual {p0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v2

    .line 103
    .local v2, "paras":Landroid/hardware/Camera$Parameters;
    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getPreviewFormat()I

    move-result v0

    .line 104
    .local v0, "formatInt":I
    invoke-virtual {p0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v5

    invoke-virtual {v5}, Landroid/hardware/Camera$Parameters;->getPreviewSize()Landroid/hardware/Camera$Size;

    move-result-object v3

    .line 105
    .local v3, "previewSize":Landroid/hardware/Camera$Size;
    const-string v4, ""

    .line 109
    .local v4, "result":Ljava/lang/String;
    :try_start_0
    const-class v5, Landroid/hardware/Camera$Parameters;

    const-string v6, "getFocalLength"

    const/4 v7, 0x0

    new-array v7, v7, [Ljava/lang/Class;

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 110
    .local v1, "method":Ljava/lang/reflect/Method;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "\"focalLength\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 112
    const-class v5, Landroid/hardware/Camera$Parameters;

    const-string v6, "getHorizontalViewAngle"

    const/4 v7, 0x0

    new-array v7, v7, [Ljava/lang/Class;

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 113
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"horizontalViewAngle\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 115
    const-class v5, Landroid/hardware/Camera$Parameters;

    const-string v6, "getVerticalViewAngle"

    const/4 v7, 0x0

    new-array v7, v7, [Ljava/lang/Class;

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 116
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"verticalViewAngle\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 118
    const-class v5, Landroid/hardware/Camera$Parameters;

    const-string v6, "getExposureCompensation"

    const/4 v7, 0x0

    new-array v7, v7, [Ljava/lang/Class;

    invoke-virtual {v5, v6, v7}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v1

    .line 119
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"exposureCompensation\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v4

    .line 122
    .end local v1    # "method":Ljava/lang/reflect/Method;
    :goto_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"sceneMode\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getSceneMode()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 123
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"focusMode\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getFocusMode()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 124
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"flashMode\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getFlashMode()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 125
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"colorEffect\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getColorEffect()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 126
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"antibanding\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getAntibanding()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 127
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"whiteBalance\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getWhiteBalance()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 128
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"previewFormat\":\""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-static {v0}, Lrexsee/multimedia/RexseeCameraPreview;->_getFormat(I)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "\""

    invoke-virtual {v5, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 129
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"previewWidth\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, v3, Landroid/hardware/Camera$Size;->width:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 130
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"previewHeight\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget v6, v3, Landroid/hardware/Camera$Size;->height:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 131
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, ",\"previewFrameRate\":"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v2}, Landroid/hardware/Camera$Parameters;->getPreviewFrameRate()I

    move-result v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 132
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "{"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "}"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    return-object v5

    .line 120
    :catch_0
    move-exception v5

    goto/16 :goto_0
.end method

.method public static _getFormat(Ljava/lang/String;)I
    .locals 2
    .param p0, "formatString"    # Ljava/lang/String;

    .prologue
    const/16 v1, 0x100

    .line 70
    const-string v0, "JPEG"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v1

    .line 75
    :goto_0
    return v0

    .line 71
    :cond_0
    const-string v0, "NV16"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/16 v0, 0x10

    goto :goto_0

    .line 72
    :cond_1
    const-string v0, "NV21"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/16 v0, 0x11

    goto :goto_0

    .line 73
    :cond_2
    const-string v0, "RGB_565"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/4 v0, 0x4

    goto :goto_0

    .line 74
    :cond_3
    const-string v0, "YUY2"

    invoke-virtual {p0, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    const/16 v0, 0x14

    goto :goto_0

    :cond_4
    move v0, v1

    .line 75
    goto :goto_0
.end method

.method public static _getFormat(I)Ljava/lang/String;
    .locals 1
    .param p0, "formatInt"    # I

    .prologue
    .line 79
    sparse-switch p0, :sswitch_data_0

    .line 96
    const-string v0, "UNKOWON"

    .line 99
    .local v0, "format":Ljava/lang/String;
    :goto_0
    return-object v0

    .line 81
    .end local v0    # "format":Ljava/lang/String;
    :sswitch_0
    const-string v0, "JPEG"

    .line 82
    .restart local v0    # "format":Ljava/lang/String;
    goto :goto_0

    .line 84
    .end local v0    # "format":Ljava/lang/String;
    :sswitch_1
    const-string v0, "NV16"

    .line 85
    .restart local v0    # "format":Ljava/lang/String;
    goto :goto_0

    .line 87
    .end local v0    # "format":Ljava/lang/String;
    :sswitch_2
    const-string v0, "NV21"

    .line 88
    .restart local v0    # "format":Ljava/lang/String;
    goto :goto_0

    .line 90
    .end local v0    # "format":Ljava/lang/String;
    :sswitch_3
    const-string v0, "RGB_565"

    .line 91
    .restart local v0    # "format":Ljava/lang/String;
    goto :goto_0

    .line 93
    .end local v0    # "format":Ljava/lang/String;
    :sswitch_4
    const-string v0, "YUY2"

    .line 94
    .restart local v0    # "format":Ljava/lang/String;
    goto :goto_0

    .line 79
    nop

    :sswitch_data_0
    .sparse-switch
        0x4 -> :sswitch_3
        0x10 -> :sswitch_1
        0x11 -> :sswitch_2
        0x14 -> :sswitch_4
        0x100 -> :sswitch_0
    .end sparse-switch
.end method

.method public static _getSupportedArguments(Landroid/hardware/Camera;)Ljava/lang/String;
    .locals 6
    .param p0, "camera"    # Landroid/hardware/Camera;

    .prologue
    const-class v3, Landroid/hardware/Camera$Parameters;

    .line 46
    invoke-virtual {p0}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v1

    .line 47
    .local v1, "paras":Landroid/hardware/Camera$Parameters;
    const-string v2, ""

    .line 51
    .local v2, "result":Ljava/lang/String;
    :try_start_0
    const-class v3, Landroid/hardware/Camera$Parameters;

    const-string v4, "getMaxExposureCompensation"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    .line 52
    .local v0, "method":Ljava/lang/reflect/Method;
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\"maxExposureCompensation\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 54
    const-class v3, Landroid/hardware/Camera$Parameters;

    const-string v4, "getMinExposureCompensation"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    .line 55
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"minExposureCompensation\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 57
    const-class v3, Landroid/hardware/Camera$Parameters;

    const-string v4, "getExposureCompensationStep"

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Class;

    invoke-virtual {v3, v4, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    .line 58
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"exposureCompensationStep\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 61
    .end local v0    # "method":Ljava/lang/reflect/Method;
    :goto_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"sceneMode\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedSceneModes()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 62
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"focusMode\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedFocusModes()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 63
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"flashMode\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedFlashModes()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 64
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"colorEffect\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedColorEffects()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 65
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"antibanding\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedAntibanding()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 66
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ",\"whiteBalance\":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v1}, Landroid/hardware/Camera$Parameters;->getSupportedWhiteBalance()Ljava/util/List;

    move-result-object v4

    invoke-static {v4}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 67
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "{"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "}"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    return-object v3

    .line 59
    :catch_0
    move-exception v3

    goto/16 :goto_0
.end method

.method static synthetic access$0(Lrexsee/multimedia/RexseeCameraPreview;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 136
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method public static getPreview(Lrexsee/core/browser/Browser;)Lrexsee/multimedia/RexseeCameraPreview;
    .locals 5
    .param p0, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    const/4 v4, 0x0

    .line 40
    iget-object v1, p0, Lrexsee/core/browser/Browser;->interfaceList:Lrexsee/core/browser/clazz/JavascriptInterfaceList;

    new-instance v2, Ljava/lang/StringBuilder;

    iget-object v3, p0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v3, v3, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v3, v3, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "CameraPreview"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/core/browser/clazz/JavascriptInterfaceList;->get(Ljava/lang/String;)Lrexsee/core/browser/clazz/JavascriptInterface;

    move-result-object v0

    check-cast v0, Lrexsee/multimedia/RexseeCameraPreview;

    .line 41
    .local v0, "preview":Lrexsee/multimedia/RexseeCameraPreview;
    if-nez v0, :cond_0

    move-object v1, v4

    .line 43
    :goto_0
    return-object v1

    .line 42
    :cond_0
    invoke-virtual {v0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v1

    if-nez v1, :cond_1

    move-object v1, v4

    goto :goto_0

    :cond_1
    move-object v1, v0

    .line 43
    goto :goto_0
.end method


# virtual methods
.method public getArguments()Ljava/lang/String;
    .locals 5

    .prologue
    .line 304
    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 305
    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v3

    invoke-static {v3}, Lrexsee/multimedia/RexseeCameraPreview;->_getArguments(Landroid/hardware/Camera;)Ljava/lang/String;

    move-result-object v3

    .line 315
    :goto_0
    return-object v3

    .line 308
    :cond_0
    :try_start_0
    invoke-static {}, Landroid/hardware/Camera;->open()Landroid/hardware/Camera;

    move-result-object v0

    .line 309
    .local v0, "c":Landroid/hardware/Camera;
    invoke-static {v0}, Lrexsee/multimedia/RexseeCameraPreview;->_getArguments(Landroid/hardware/Camera;)Ljava/lang/String;

    move-result-object v2

    .line 310
    .local v2, "rtn":Ljava/lang/String;
    invoke-virtual {v0}, Landroid/hardware/Camera;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 311
    const/4 v0, 0x0

    move-object v3, v2

    .line 312
    goto :goto_0

    .line 313
    .end local v0    # "c":Landroid/hardware/Camera;
    .end local v2    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v3

    move-object v1, v3

    .line 314
    .local v1, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 315
    const-string v3, "{}"

    goto :goto_0
.end method

.method public getCamera()Landroid/hardware/Camera;
    .locals 1

    .prologue
    .line 148
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    iget-object v0, v0, Lrexsee/multimedia/CameraPreviewDialog;->camera:Landroid/hardware/Camera;

    goto :goto_0
.end method

.method public getCurrentZoom()I
    .locals 3

    .prologue
    .line 236
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 237
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 238
    :cond_0
    const/4 v0, -0x1

    .line 240
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->getCurrentZoom()I

    move-result v0

    goto :goto_0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 26
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 22
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "CameraPreview"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getMaxZoom()I
    .locals 3

    .prologue
    .line 229
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 230
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 231
    :cond_0
    const/4 v0, -0x1

    .line 233
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->getMaxZoom()I

    move-result v0

    goto :goto_0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 30
    new-instance v0, Lrexsee/multimedia/RexseeCameraPreview;

    invoke-direct {v0, p1}, Lrexsee/multimedia/RexseeCameraPreview;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getSupportedArguments()Ljava/lang/String;
    .locals 5

    .prologue
    .line 320
    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 321
    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v3

    invoke-static {v3}, Lrexsee/multimedia/RexseeCameraPreview;->_getSupportedArguments(Landroid/hardware/Camera;)Ljava/lang/String;

    move-result-object v3

    .line 331
    :goto_0
    return-object v3

    .line 324
    :cond_0
    :try_start_0
    invoke-static {}, Landroid/hardware/Camera;->open()Landroid/hardware/Camera;

    move-result-object v0

    .line 325
    .local v0, "c":Landroid/hardware/Camera;
    invoke-static {v0}, Lrexsee/multimedia/RexseeCameraPreview;->_getSupportedArguments(Landroid/hardware/Camera;)Ljava/lang/String;

    move-result-object v2

    .line 326
    .local v2, "rtn":Ljava/lang/String;
    invoke-virtual {v0}, Landroid/hardware/Camera;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 327
    const/4 v0, 0x0

    move-object v3, v2

    .line 328
    goto :goto_0

    .line 329
    .end local v0    # "c":Landroid/hardware/Camera;
    .end local v2    # "rtn":Ljava/lang/String;
    :catch_0
    move-exception v3

    move-object v1, v3

    .line 330
    .local v1, "e":Ljava/lang/Exception;
    iget-object v3, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 331
    const-string v3, "{}"

    goto :goto_0
.end method

.method public isSmoothZoomSupported()Z
    .locals 3

    .prologue
    .line 215
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 216
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 217
    :cond_0
    const/4 v0, 0x0

    .line 219
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->isSmoothZoomSupported()Z

    move-result v0

    goto :goto_0
.end method

.method public isZoomSupported()Z
    .locals 3

    .prologue
    .line 222
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 223
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 224
    :cond_0
    const/4 v0, 0x0

    .line 226
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->isZoomSupported()Z

    move-result v0

    goto :goto_0
.end method

.method public setArguments(Ljava/lang/String;)Z
    .locals 17
    .param p1, "arguments"    # Ljava/lang/String;

    .prologue
    .line 244
    invoke-virtual/range {p0 .. p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v13

    if-nez v13, :cond_1

    .line 245
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v13, v0

    if-eqz v13, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v13, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v14

    const-string v15, "Carmera preview is not started."

    invoke-virtual {v13, v14, v15}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 246
    :cond_0
    const/4 v13, 0x0

    .line 300
    :goto_0
    return v13

    .line 248
    :cond_1
    if-eqz p1, :cond_2

    const-string v13, ""

    move-object/from16 v0, p1

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_3

    :cond_2
    const/4 v13, 0x1

    goto :goto_0

    .line 249
    :cond_3
    const-string v13, ";"

    move-object/from16 v0, p1

    move-object v1, v13

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 250
    .local v2, "argus":[Ljava/lang/String;
    invoke-virtual/range {p0 .. p0}, Lrexsee/multimedia/RexseeCameraPreview;->getCamera()Landroid/hardware/Camera;

    move-result-object v3

    .line 251
    .local v3, "camera":Landroid/hardware/Camera;
    invoke-virtual {v3}, Landroid/hardware/Camera;->getParameters()Landroid/hardware/Camera$Parameters;

    move-result-object v10

    .line 252
    .local v10, "paras":Landroid/hardware/Camera$Parameters;
    const/4 v9, -0x1

    .local v9, "pWidth":I
    const/4 v8, -0x1

    .line 253
    .local v8, "pHeight":I
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_1
    array-length v13, v2

    if-lt v5, v13, :cond_5

    .line 295
    if-lez v9, :cond_4

    if-lez v8, :cond_4

    :try_start_0
    invoke-virtual {v10, v9, v8}, Landroid/hardware/Camera$Parameters;->setPreviewSize(II)V

    .line 296
    :cond_4
    invoke-virtual {v3, v10}, Landroid/hardware/Camera;->setParameters(Landroid/hardware/Camera$Parameters;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    .line 297
    const/4 v13, 0x1

    goto :goto_0

    .line 254
    :cond_5
    aget-object v13, v2, v5

    const-string v14, "="

    invoke-virtual {v13, v14}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v13

    if-gtz v13, :cond_7

    .line 253
    :cond_6
    :goto_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    .line 255
    :cond_7
    aget-object v13, v2, v5

    const/4 v14, 0x0

    aget-object v15, v2, v5

    const-string v16, "="

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v15

    invoke-virtual {v13, v14, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v6

    .line 256
    .local v6, "key":Ljava/lang/String;
    aget-object v13, v2, v5

    aget-object v14, v2, v5

    const-string v15, "="

    invoke-virtual {v14, v15}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v14

    add-int/lit8 v14, v14, 0x1

    invoke-virtual {v13, v14}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v13

    invoke-virtual {v13}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v12

    .line 258
    .local v12, "value":Ljava/lang/String;
    :try_start_1
    const-string v13, "exposureCompensation"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_8

    .line 259
    const/4 v13, -0x1

    invoke-static {v12, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move-result v11

    .line 260
    .local v11, "v":I
    if-lez v11, :cond_6

    .line 263
    :try_start_2
    const-class v13, Landroid/hardware/Camera$Parameters;

    const-string v14, "setExposureCompensation"

    invoke-static {v13, v14}, Lrexsee/core/utilities/RexseeClazz;->getMethod(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;

    move-result-object v7

    .line 264
    .local v7, "method":Ljava/lang/reflect/Method;
    if-eqz v7, :cond_6

    const/4 v13, 0x1

    new-array v13, v13, [Ljava/lang/Object;

    const/4 v14, 0x0

    invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v15

    aput-object v15, v13, v14

    invoke-virtual {v7, v10, v13}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_2

    .line 265
    .end local v7    # "method":Ljava/lang/reflect/Method;
    :catch_0
    move-exception v13

    move-object v4, v13

    .line 266
    .local v4, "e":Ljava/lang/Exception;
    :try_start_3
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v13, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v14

    const-string v15, "Can not find method setExposureCompensation."

    invoke-virtual {v13, v14, v15}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2

    .line 291
    .end local v4    # "e":Ljava/lang/Exception;
    .end local v11    # "v":I
    :catch_1
    move-exception v13

    goto :goto_2

    .line 269
    :cond_8
    const-string v13, "sceneMode"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_9

    .line 270
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setSceneMode(Ljava/lang/String;)V

    goto :goto_2

    .line 271
    :cond_9
    const-string v13, "focusMode"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_a

    .line 272
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setFocusMode(Ljava/lang/String;)V

    goto :goto_2

    .line 273
    :cond_a
    const-string v13, "flashMode"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_b

    .line 274
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setFlashMode(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 275
    :cond_b
    const-string v13, "colorEffect"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_c

    .line 276
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setColorEffect(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 277
    :cond_c
    const-string v13, "antibanding"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_d

    .line 278
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setAntibanding(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 279
    :cond_d
    const-string v13, "whiteBalance"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_e

    .line 280
    invoke-virtual {v10, v12}, Landroid/hardware/Camera$Parameters;->setWhiteBalance(Ljava/lang/String;)V

    goto/16 :goto_2

    .line 281
    :cond_e
    const-string v13, "previewFormat"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_f

    .line 282
    invoke-static {v12}, Lrexsee/multimedia/RexseeCameraPreview;->_getFormat(Ljava/lang/String;)I

    move-result v13

    invoke-virtual {v10, v13}, Landroid/hardware/Camera$Parameters;->setPreviewFormat(I)V

    goto/16 :goto_2

    .line 283
    :cond_f
    const-string v13, "previewWidth"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_10

    .line 284
    const/4 v13, -0x1

    invoke-static {v12, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v9

    goto/16 :goto_2

    .line 285
    :cond_10
    const-string v13, "previewHeight"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_11

    .line 286
    const/4 v13, -0x1

    invoke-static {v12, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v8

    goto/16 :goto_2

    .line 287
    :cond_11
    const-string v13, "previewFrameRate"

    invoke-virtual {v6, v13}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_6

    .line 288
    const/4 v13, -0x1

    invoke-static {v12, v13}, Lrexsee/core/utilities/Utilities;->getInt(Ljava/lang/String;I)I

    move-result v11

    .line 289
    .restart local v11    # "v":I
    if-lez v11, :cond_6

    invoke-virtual {v10, v11}, Landroid/hardware/Camera$Parameters;->setPreviewFrameRate(I)V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    goto/16 :goto_2

    .line 298
    .end local v6    # "key":Ljava/lang/String;
    .end local v11    # "v":I
    .end local v12    # "value":Ljava/lang/String;
    :catch_2
    move-exception v13

    move-object v4, v13

    .line 299
    .restart local v4    # "e":Ljava/lang/Exception;
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v13, v0

    invoke-virtual/range {p0 .. p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v13, v14, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 300
    const/4 v13, 0x0

    goto/16 :goto_0
.end method

.method public show()V
    .locals 2

    .prologue
    .line 184
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_0

    .line 191
    :goto_0
    return-void

    .line 185
    :cond_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/multimedia/RexseeCameraPreview$3;

    invoke-direct {v1, p0}, Lrexsee/multimedia/RexseeCameraPreview$3;-><init>(Lrexsee/multimedia/RexseeCameraPreview;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public start(Ljava/lang/String;I)Z
    .locals 4
    .param p1, "style"    # Ljava/lang/String;
    .param p2, "orientation"    # I

    .prologue
    const/4 v3, 0x1

    .line 153
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-eqz v0, :cond_0

    move v0, v3

    .line 174
    :goto_0
    return v0

    .line 154
    :cond_0
    if-eqz p2, :cond_2

    const/16 v0, 0x5a

    if-eq p2, v0, :cond_2

    const/16 v0, 0xb4

    if-eq p2, v0, :cond_2

    const/16 v0, 0x10e

    if-eq p2, v0, :cond_2

    .line 155
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid orientation."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 156
    :cond_1
    const/4 v0, 0x0

    goto :goto_0

    .line 158
    :cond_2
    new-instance v0, Lrexsee/multimedia/CameraPreviewDialog;

    iget-object v1, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-direct {v0, v1, p1}, Lrexsee/multimedia/CameraPreviewDialog;-><init>(Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    iput-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    .line 159
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    new-instance v1, Lrexsee/multimedia/RexseeCameraPreview$1;

    invoke-direct {v1, p0}, Lrexsee/multimedia/RexseeCameraPreview$1;-><init>(Lrexsee/multimedia/RexseeCameraPreview;)V

    .line 164
    new-instance v2, Lrexsee/multimedia/RexseeCameraPreview$2;

    invoke-direct {v2, p0}, Lrexsee/multimedia/RexseeCameraPreview$2;-><init>(Lrexsee/multimedia/RexseeCameraPreview;)V

    .line 159
    invoke-virtual {v0, p2, v1, v2}, Lrexsee/multimedia/CameraPreviewDialog;->start(ILjava/lang/Runnable;Lrexsee/multimedia/CameraPreviewDialog$OnCameraPreviewKeyDown;)V

    move v0, v3

    .line 174
    goto :goto_0
.end method

.method public stop()Z
    .locals 1

    .prologue
    .line 177
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-eqz v0, :cond_0

    .line 178
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->dismiss()V

    .line 179
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    .line 181
    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method public zoom(I)Z
    .locals 3
    .param p1, "value"    # I

    .prologue
    .line 194
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 195
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 196
    :cond_0
    const/4 v0, 0x0

    .line 198
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0, p1}, Lrexsee/multimedia/CameraPreviewDialog;->zoom(I)Z

    move-result v0

    goto :goto_0
.end method

.method public zoomIn()Z
    .locals 3

    .prologue
    .line 201
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 202
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 203
    :cond_0
    const/4 v0, 0x0

    .line 205
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->zoomIn()Z

    move-result v0

    goto :goto_0
.end method

.method public zoomOut()Z
    .locals 3

    .prologue
    .line 208
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    if-nez v0, :cond_1

    .line 209
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/multimedia/RexseeCameraPreview;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Carmera preview is not started."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 210
    :cond_0
    const/4 v0, 0x0

    .line 212
    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lrexsee/multimedia/RexseeCameraPreview;->previewDialog:Lrexsee/multimedia/CameraPreviewDialog;

    invoke-virtual {v0}, Lrexsee/multimedia/CameraPreviewDialog;->zoomOut()Z

    move-result v0

    goto :goto_0
.end method
